package com.example.spindrift.service;

import com.example.spindrift.dao.SysSongTypeMepper;
import com.example.spindrift.models.SysSongType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SongTypeService {
    @Autowired
    SysSongTypeMepper sysSongTypeMepper;

    public List<SysSongType> getAllSongType() {
        return sysSongTypeMepper.getAllSongType();
    }

    public SysSongType getSongTypeById(Integer songTypeId) {
        return sysSongTypeMepper.getSongTypeById(songTypeId);
    }

    public Integer insertSongType(SysSongType songType) {
        return sysSongTypeMepper.insertSongType(songType);
    }

    public Integer updateSongType(SysSongType songType) {
        return sysSongTypeMepper.updateSongType(songType);
    }

    public Integer deleteSongType(Integer songTypeId) {
        return sysSongTypeMepper.deleteSongType(songTypeId);
    }
}
